




from utils.remote_exec_cmd import remote_exec
#
CMDSTRS="sleep 406 ;echo $(date) > /root/as"
uuids="c6ab8e75-5526-3249-95cc-e71801f2e7eb_6e706fa6-de78-11e8-a771-701ce7f4660f"
# CMDSTRS="ps aux | \grep 'SCREEN -dmS {}' |grep -v 'grep SCREEN -dmS {}' |awk -F'SCREEN' '{{print $2}}'|awk '{{print $2}}'".format(uuids,uuids)
# CMDSTRS="bash /root/nnn"
CMDSTRS="sed -rn 's@^logfile (.*)%t.log@\\1@p' /etc/screenrc"
CMDSTRS="bash /root/ade.sh"
ececObj = remote_exec.Remote_Exec("10.1.41.200",65534,"root","root",CMDSTRS,"shell")
results=ececObj.run(0,1)
print("results:",results)

# ececObj = remote_exec.Remote_Exec("10.1.41.201",65534,"root","root","uptime","ansible")
# results=ececObj.run()
# print("results:",results)
# import uuid
# for i in range(10000):
#     print(uuid.uuid1())
import uuid
uuid.uuid3(uuid.NAMESPACE_X500,'123')
'''
00e029a2-f568-38cb-9630-84ef15456422_ff99a75a-de6d-11e8-a076-701ce7f4660f
00e029a2-f568-38cb-9630-84ef15456422_2d600398-de6e-11e8-967f-701ce7f4660f
'''